package com.google.code.chaotic.dto;

import java.io.Serializable;
import java.util.Date;

//

public class HabitWaypointDto implements Serializable {

	/**
	 * @uml.property name="sequenceNo"
	 */
	private Integer sequenceNo;

	/**
	 * @uml.property name="position"
	 */
	private LatLonDto position;

	/**
	 * @uml.property name="commutingHabitDto"
	 * @uml.associationEnd 
	 *                     inverse="waypoints:com.google.code.chaotic.dto.CommutingHabitDt
	 *                     o
	 */
	private CommutingHabitDto commutingHabit;

	private Date version;

	//

	public String getId() {
		return new StringBuilder() //
				.append(commutingHabit.getId()).append('-') //
				.append(Integer.toHexString(sequenceNo)) //
				.toString();
	}

	public void setId(String id) {
		throw new UnsupportedOperationException();
	}

	/** @uml.property name="sequenceNo" */
	public Integer getSequenceNo() {
		return sequenceNo;
	}

	/** @uml.property name="sequenceNo" */
	public void setSequenceNo(Integer sequenceNo) {
		this.sequenceNo = sequenceNo;
	}

	/** @uml.property name="position" */
	public LatLonDto getPosition() {
		return position;
	}

	/** @uml.property name="position" */
	public void setPosition(LatLonDto position) {
		this.position = position;
	}

	/** @uml.property name="commutingHabitDto" */
	public CommutingHabitDto getCommutingHabit() {
		return commutingHabit;
	}

	/** @uml.property name="commutingHabitDto" */
	public void setCommutingHabit(CommutingHabitDto commutingHabitDto) {
		this.commutingHabit = commutingHabitDto;
	}

	/** @uml.property name="version" */
	public Date getVersion() {
		return version;
	}

	/** @uml.property name="version" */
	public void setVersion(Date version) {
		this.version = version;
	}
}
